﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CSMF.ValidateCode.lib
{
    public class ApplicationLog
    {
        private static log4net.ILog _log = log4net.LogManager.GetLogger("ProgramLog");

        public static void Info(string message)
        {
            _log.Info(message);
        }

        public static void Debug(string format, params object[] args)
        {
            Console.WriteLine(format, args);
            _log.DebugFormat(format, args);
        }

        public static void Warn(string format, params object[] args)
        {
            _log.WarnFormat(format, args);
        }

        public static void Error(string format, params object[] args)
        {
            _log.ErrorFormat(format, args);
        }

        public static void Fatal(string format, params object[] args)
        {
            _log.FatalFormat(format, args);
        }
    }
}